#include <stdio.h>
int main()
{

<<<<<<< HEAD
    printf("hello world\n");
    printf("啥也不是");

    printf("hello world\n");
    printf("nihao\n");
    printf("第二次");


=======

    printf("hello world\n");
    printf("nihao\n");
    printf("hello world\n");
    printf("啥也不是");
>>>>>>> 3205f716f368558709a6368e4e6ea2d5171301f9

    printf("hello world\n");
    printf("nihao\n");
    if（A）
    {
    printf("hello world\n");
    }
    else if(B)
    {
        printf("Yes");
    }
    else{
    prinf("Are you OK");
    }
    printf("··························\n");
<<<<<<< HEAD
=======
    123456789
    ABCDEFG
    dhdhdehdhdhdhdhdhdhdkw;
    wwlweklwlwlwl;
tile = 1

def chessBoard(tr, tc, dr, dc, size):
    global tile
    if size == 1:
        return
    t = tile
    tile += 1
    s = size // 2
    # 处理左上角子棋盘
    if dr < tr + s and dc < tc + s:
        chessBoard(tr, tc, dr, dc, s)
    else:
        board[tr + s - 1][tc + s - 1] = t
        chessBoard(tr, tc, tr + s - 1, tc + s - 1, s)

    # 处理右上角子棋盘
    if dr < tr + s and dc >= tc + s:
        chessBoard(tr, tc + s, dr, dc, s)
    else:
        board[tr + s - 1][tc + s] = t
        chessBoard(tr, tc + s, tr + s - 1, tc + s, s)

    # 处理左下角子棋盘
    if dr >= tr + s and dc < tc + s:
        chessBoard(tr + s, tc, dr, dc, s)
    else:
        board[tr + s][tc + s - 1] = t
        chessBoard(tr + s, tc, tr + s, tc + s - 1, s)

    # 处理右下角子棋盘
    if dr >= tr + s and dc >= tc + s:
        chessBoard(tr + s, tc + s, dr, dc, s)
    else:
        board[tr + s][tc + s] = t
        chessBoard(tr + s, tc + s, tr + s, tc + s, s)
>>>>>>> 3205f716f368558709a6368e4e6ea2d5171301f9


k = int(input("请输入k值: "))
size = 2 ** k
board = [[0] * size for _ in range(size)]
dr = int(input("请输入特殊方格的行坐标（从0开始）: "))
dc = int(input("请输入特殊方格的列坐标（从0开始）: "))
board[dr][dc] = -1
chessBoard(0, 0, dr, dc, size)
for row in board:
    for num in row:
        print(num, end='\t')
    print()
    return 0;
}
